![]() |
PATH![]() |
![]() ![]() |
Enables a menu item or a menu.
pascal void EnableMenuItem (
MenuHandle theMenu,
UInt16 item);
The
EnableMenuItem
function enables a menu item so that the user can choose the item from the menu. Unlike the pre-Mac OS 8.5 Menu Manager function
EnableItem
, the
EnableMenuItem
function can enable individual menu items with item numbers greater than 31. If the menu item has an associated icon, that icon is also enabled, unless the icon was previously individually disabled with the function
DisableMenuItemIcon
.
If your application enables a menu title using EnableMenuItem , it should then call either the DrawMenuBar function or the InvalMenuBar function to update the menu bar's appearance.